package binderon.com.vaadin;

import binderon.com.vaadin.admin.user.UserRecords;

import com.vaadin.Application;
import com.vaadin.ui.Window;

public class VaadinApplication extends Application{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private UserRecords userRecords;
	@Override
	public void init() {
		Window mainWindow = new Window("Testvaadin Application");	
		getUserRecords().loadData();
		mainWindow.addComponent(getUserRecords());
		setMainWindow(mainWindow);
	}
	/**
	 * @return the userRecords
	 */
	public UserRecords getUserRecords() {
		return userRecords;
	}
	/**
	 * @param userRecords the userRecords to set
	 */
	public void setUserRecords(UserRecords userRecords) {
		this.userRecords = userRecords;
	}
}
